﻿using System;

namespace DatabaseConnectionExample
{
    class MsSqlConnection : DatabaseConnection
    {
        public MsSqlConnection(string connectionString, TimeSpan timeout) : base(connectionString, timeout)
        {
        }

        public override void OpenConnection()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Connected to Microsoft SQL Server");
            Console.ForegroundColor = ConsoleColor.White;
        }

        public override void CloseConnection()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Disconnected from Microsoft SQL Server");
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
}